<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<ui:composition template="/WEB-INF/layout.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
        <p:panel header="Criar Exercício">
            <h:form>
                <h:panelGrid columns="4" style="margin-bottom:10px" cellpadding="5">
                    <p:outputLabel for="codigo" value="Código:"/>
                    <p:inputText id="codigo" required="true" size="3"/>
                    <p:outputLabel for="nome" value="Nome:"/>
                    <p:inputText id="nome" required="true" size="50" maxlength="30"/>
                    <p:outputLabel value="Grupo Muscular:"/>
                    <p:selectOneMenu  value="0">  
                        <f:selectItem itemLabel="Abdome" itemValue="0" />  
                        <f:selectItem itemLabel="Bíceps" itemValue="1" />  
                        <f:selectItem itemLabel="Costas" itemValue="2" />  
                        <f:selectItem itemLabel="Peito" itemValue="3" />
                        <f:selectItem itemLabel="Perna" itemValue="4" />
                        <f:selectItem itemLabel="Ombro" itemValue="5" />
                        <f:selectItem itemLabel="Tríceps" itemValue="6" />
                    </p:selectOneMenu>
                </h:panelGrid>
                <h:panelGrid>
                <p:outputLabel value="Descrição:"/>
                <p:inputTextarea rows="3" cols="99" style="width: 96%" />
                </h:panelGrid> <br />
                <p:button value="Limpar" />
                <p:spacer width="10" height="0" />
                <p:button value="Salvar" />   
            </h:form>
        </p:panel>
    </ui:define>
</ui:composition>